﻿using Asp.Versioning;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;

namespace Himp.TaskScheduling.V1
{
    /// <summary>
    /// 流程待办
    /// </summary>
    [Area(TaskSchedulingRemoteServiceConsts.ModuleName)]
    [RemoteService(Name = TaskSchedulingRemoteServiceConsts.RemoteServiceName)]
    [Route("api/taskScheduling/workflowTodoTask")]
    [ApiVersion("1.0")]
    [ApiController]
    [ControllerName("workflowTodoTask")]
    public class WorkflowTodoTaskController : TaskSchedulingController, IWorkflowTodoTaskService
    {
        private IWorkflowTodoTaskService _workflowTodoTaskService;

        public WorkflowTodoTaskController(IWorkflowTodoTaskService workflowTodoTaskService)
        {
            _workflowTodoTaskService = workflowTodoTaskService;
        }

        [HttpGet]
        public async Task<PagedResultDto<WorkflowTodoTaskDto>> GetListAsync([FromQuery]WorkflowTodoTaskInput input)
        {
            return await _workflowTodoTaskService.GetListAsync(input);
        }
    }
}
